Copy hint on a dupe.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 23 Jul 2005 05:07:10 +0000 (05:07 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 23 Jul 2005 05:07:10 +0000 (05:07 +0000)
gpsbabel/waypt.c

index 6fa26d4e021a5f854c0ff09d196baa9c5bf13265..04d244b08e94233caa51c02363599272234bc787 100644 (file)
@@ -66,6 +66,9 @@ waypt_dupe(const waypoint *wpt)
        if (wpt->gc_data.placer) {
                 tmp->gc_data.placer = xstrdup(wpt->gc_data.placer);
         }
+       if (wpt->gc_data.hint) {
+                tmp->gc_data.hint = xstrdup(wpt->gc_data.hint);
+        }
 
        /*
         * It's important that this duplicated waypoint not appear